package com.ctsi.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/10 11:32
 */
@Data
@TableName("mars_app_user")
@ApiModel(value = "用户表对象", description = "对象")
public class AppUser{

    private static final long serialVersionUID = 1L;
    /**
     * 主健
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;


    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String username;


    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码")
    private String password;


    /**
     * 用户备注
     */
    @ApiModelProperty(value = "用户备注")
    private String mark;


    /**
     * 分组ID
     */
    @ApiModelProperty(value = "分组ID")
    private Integer groupId;


    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称")
    private String nickname;


    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像")
    private String avatar;


    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    private String phone;




    /**
     * 最后一次登录ip
     */
    @ApiModelProperty(value = "最后一次登录ip")
    private String lastIp;


    /**
     * 1为正常，0为禁止
     */
    @ApiModelProperty(value = "1为正常，0为禁止")
    private int status;


    /**
     * 推广元id
     */
    @ApiModelProperty(value = "推广元id")
    private Long spreadUid;


    /**
     * 推广员关联时间
     */
    @ApiModelProperty(value = "推广员关联时间")
    private LocalDateTime spreadTime;


    /**
     * 下级人数
     */
    @ApiModelProperty(value = "下级人数")
    private Integer spreadCount;


    /**
     * 支付密码
     */
    @ApiModelProperty(value = "支付密码")
    private String payPassword;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
}